//Eg3-5.cpp
#include <iostream>
using namespace std;
class A{
private:
    int i;
public:
    A(int x){
        i=x;
        cout<<"constructor: "<<i<<endl;
    }
    ~A(){    cout<<"destructor : "<<i<<endl; }
};

void main(){
    A a1(1);
    A a2(2);
    A a3(3);
    A a4(4);
}          

